import { apiGetRequest, apiPostRequest } from "@/api/apiUtils";
import { createApiMethods } from "@/api/apiUtils";
const basePath = "drafts_config";

const detail = params => apiGetRequest(basePath, "/detail", params);
const count = params => apiPostRequest(basePath, "/count", params);

const { update, list } = createApiMethods(basePath);

export { detail, update, list, count };
